﻿package com.athena.ui 
{
	import flash.display.*;
	import flash.events.*;
	import flash.text.*;
	
	public class BasicCard extends Sprite
	{
		private var _movie:MovieClip;
		
		public function BasicCard()
		{
			_movie = card_mc;
			addEventListener(MouseEvent.MOUSE_OVER, handleMouse);
			addEventListener(MouseEvent.MOUSE_OUT, handleMouse);
		}
		
		private function handleMouse(event:MouseEvent):void
		{
			switch(event.type)
			{
				case MouseEvent.ROLL_OVER :
				_movie.gotoAndStop(2);
				break;
				case MouseEvent.ROLL_OUT :
				_movie.gotoAndStop(1);
				break;
				default :
				break;
			}
		}
	}
}